<?php
class TuiJianWidget extends CWidget{
	private $outString;
	private $controller;
	private $action;
	

	public function init(){
		$this->controller = Yii::app()->controller->id;  
        $this->action = Yii::app()->controller->action->id; 
	}

	public function run(){
		$this->tuijian();
		echo $this->outString;
	}

	public function tuijian(){
		$this->outString = <<<TUIJIAN
<!-- UJian Button BEGIN -->
<div class="ujian-hook"></div>
<script type="text/javascript">var ujian_config = {num:12,picSize:84,textHeight:45;mouseoverColor:'#1ABC9C',textColor:'#34495E',hoverTextColor:'#FFFFFF'};</script>
<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?uid=1571129"></script>
<a href="http://www.ujian.cc" style="border:0;"><img src="http://img.ujian.cc/pixel.png" alt="友荐云推荐" style="border:0;padding:0;margin:0;" /></a>
<!-- UJian Button END -->
TUIJIAN;
	
	}


}
?>
